﻿using DTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.Service.Interfae
{
    public interface IUserRoleService
    {
        /// <summary>
        /// 添加角色与员工的关系
        /// </summary>
        /// <param name="userRole"></param>
        /// <returns></returns>
        Task<int> AddUserRoles(int rid, List<int> uid);
       /// <summary>
       /// 删除角色与员工的关系
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
        Task<int> DeleteUserRoles(int id);
        /// <summary>
        /// 显示
        /// </summary>
        /// <param name="Rid"></param>
        /// <returns></returns>
        Task<List<UserRoleDto>> GetUserRole(int Rid);
        Task<List<UserRoleDto>> GetUserRoleList(int Ridd);
        /// <summary>
        /// 显示用户与角色的关系(根据用户ID)
        /// </summary>
        /// <returns></returns>
        Task<List<UserRole>> userRolesList(int uid);
      
    
    }
}
